/**
 * @author        Nicolas Bottarini <nicolasbottarini@gmail.com>, 404 <http://www.proyecto404.com>
 * @version       $Rev: 3 $
 * @lastrevision  $Date: 2011-09-12 16:45:37 +0000 (Mon, 12 Sep 2011) $	 
 */
package com.proyecto404.core.configuration {
	import com.proyecto404.core.AssetInfo;
	import com.proyecto404.core.BaseObject;
	import com.proyecto404.core.collections.IIterator;
	import com.proyecto404.core.collections.List;
	
	public class PreloaderInfo extends BaseObject {
		private var _name:String;
		private var _file:String;
		private var _data:List;
		
		public function PreloaderInfo(name:String, file:String) {
			super();
			_name = name;
			_file = file;
			_data = new List();
		}
		
		public function get name():String {
			return _name;
		}
		
		public function get file():String {
			return _file;
		}
		
		public function addAsset(asset:AssetInfo):void {
			_data.add(asset);
		}
		
		public function getAssets():IIterator {
			return _data.getIterator();
		}
	}
}